<!-- 用$.fn.extend({}) 封装jquery.lazyload.js 插件 并且放到码云上  -->

 <script src="http://unpkg.com/jquery"></script> 
<script src="./jquery.lazyload.js"></script>

<img height="600" src="https://img2.baidu.com/it/u=60267505,2848672039&fm=26&fmt=auto&gp=0.jpg" data="./imgs/1.jpg" alt=""><hr>
<img height="600" src="https://img2.baidu.com/it/u=60267505,2848672039&fm=26&fmt=auto&gp=0.jpg" data="./imgs/2.jpg" alt=""><hr>
<img height="600" src="https://img2.baidu.com/it/u=60267505,2848672039&fm=26&fmt=auto&gp=0.jpg" data="./imgs/3.jpg" alt=""><hr>
<img height="600" src="https://img2.baidu.com/it/u=60267505,2848672039&fm=26&fmt=auto&gp=0.jpg" data="./imgs/4.jpg" alt=""><hr>
<img height="600" src="https://img2.baidu.com/it/u=60267505,2848672039&fm=26&fmt=auto&gp=0.jpg" data="./imgs/5.jpg" alt=""><hr>

<script>
    $('img').lazyload()
</script>